[ Java ] DAO, Service 활용한 휴일 등록하기
휴일 등록하기 HolidayDAO.java private String HOLIDAY_INSERT = "INSERT INTO SQL_HOLIDAY_LIST (YEAR, MONTH, DAY, REMARK) VALUES(?, ?, ?, ?)"; public int insertHoliday(Connection conn, String year, String month, String day, String remark) throws SQLException { int resultVal = 0; preparedStatement pstmt = conn.prepareStatement(HOLIDAY_INSERT); pstmt.setString(1,year); pstmt.setString(2,month); pstmt.setSt..
더보기